﻿using QG.JobBack.DAL;
using QH.JobBack.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QG.JobBack.BLL.IService
{
    public interface IFunctionService
    {
        ResponseResult<Function> AddFunction(Function function);



        ResponseResult<Function> UpdateFunction(Function function);


        /// <summary>
        /// 根据Id删除一个功能
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseResult<Function> DeleteFunctionById(int id);

        /// <summary>
        /// 查询功能列表
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="functionName"></param>
        /// <returns></returns>
        ResponseResult<Function> GetFunctionList(int page, int limit, string functionName);


        /// <summary>
        /// 查询单个实体
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseResult<Function> GetFunction(int id);

        /// <summary>
        /// 查询菜单下全部功能
        /// </summary>
        /// <returns></returns>
        ResponseResult<Function> GetAllFunction();

        /// <summary>
        /// 获取某个组下的功能
        /// </summary>
        /// <param name="moduleid"></param>
        /// <returns></returns>
        ResponseResult<Function> GetModuleFunction(int moduleid);

    }
}
